import * as $http from '@/utlis/interface/UserAgreenmentText'
import { ref } from 'vue'
export default () => {
  const agreeText = ref(null)
  const userAgreement = () => {
    $http.privacyAgreement().then((res: any) => {
      if (res.code == 0) {
        agreeText.value = res.data

      }

    })
  }
  const PrivacyPolicyText = ref(null)
  const userGetPrivacyPolicy = () => {
    $http.userGetPrivacyPolicy().then((res: any) => {
      if (res.code == 0) {
        PrivacyPolicyText.value = res.data.privacyInfo

      }

    })
  }

  return {
    agreeText,
    userAgreement,
    PrivacyPolicyText,
    userGetPrivacyPolicy
  }
}